<template>
	<view class="page-container pay-result-container">
		<view class="pay-info-box">
			<view class="pay-info-image">
				<image :src="$img_path('/home/order/pay-success.png')" mode="widthFix"></image>
			</view>
			<view class="tip">
				<text>支付成功</text>
			</view>
			<view class="pay-tip">
				<text>微信支付 实付¥ 200.00</text>
			</view>
		</view>
		<view class="btns">
			<view class="btn" @click="back">
				<text>返回</text>
			</view>
			<view class="btn order-btn common-btn-bg-color" @click="gotoOrderDetail">
				<text>查看订单</text>
			</view>
		</view>
		<!-- 商品列表 -->
		<view class="goods-list-box">
			<view class="goods-list-header">
				<text class="header-title">商品推荐</text>
			</view>
			<view class="goods-list">
				<view class="goods-list-item" v-for="(item, index) in 40" :key="index">
					<home-goods-box
						type="row" 
						:imageStyle="{width:'344rpx',height:'246rpx'}"
					></home-goods-box>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			back() {
				uni.navigateBack()
			},
			gotoOrderDetail() {
				console.log("前往详情页")
			}
		}
	}
</script>

<style lang="scss" scoped>
.pay-result-container {
	box-sizing: border-box;
	min-height: 100vh;
	background-color: #fff;
	padding: 22rpx;
}

.pay-info-box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 34rpx;
	flex-direction: column;
	
	.pay-info-image {
		width: 200rpx;
		height: 200rpx;
	}
	
	image {
		width: 100%;
		height: 100%;
	}
	
	.tip {
		margin-top: 30rpx;
		font-weight: bold;
		font-size: 36rpx;
		color: #333333;
	}
	
	.pay-tip {
		margin-top: 22rpx;
		font-weight: bold;
		font-size: 30rpx;
		color: #333333;
	}
}

.btns {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 46rpx;
	
	.btn {
		width: 300rpx;
		height: 96rpx;
		background: #F8F8F8;
		border-radius: 80rpx 80rpx 80rpx 80rpx;
		font-weight: bold;
		font-size: 36rpx;
		color: #999999;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.order-btn {
		font-weight: bold;
		font-size: 36rpx;
		color: #FFFFFF;
	}
}

.goods-list-box {
	margin-top: 78rpx;
	
	.goods-list-header {
		display: flex;
		align-items: center;
		justify-content: center;
		.header-title {
			font-weight: bold;
			font-size: 32rpx;
			color: #333333;
			position: relative;
			
			&::after {
				content: '';
				width: 72rpx;
				height: 1rpx;
				background-color: #707070;
				position: absolute;
				right: -84rpx;
				top: 50%;
			}
			
			&::before {
				content: '';
				width: 72rpx;
				height: 1rpx;
				background-color: #707070;
				position: absolute;
				left: -84rpx;
				top: 50%;
			}
		}
	}
	
	.goods-list {
		display: flex;
		flex-wrap: wrap;
		gap: 18rpx;
		margin-top: 40rpx;
		
		.goods-list-item {
			width: 344rpx;
		}
	}
}
</style>
